<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.dd.*,com.javapig.util.*"%>

<%
	// Get parameters

	// "sidebar" (tells which sidebar to display)
	String sidebar = ParamUtils.getParameter(request, "sidebar");
	if (sidebar == null) {
		String sessionSidebar = (String) session
		.getAttribute("jive.admin.sidebarTab");
		if (sessionSidebar == null) {
			sidebar = "system";
		} else {
			sidebar = sessionSidebar;
		}
	} else {
		session.setAttribute("jive.admin.sidebarTab", sidebar);
	}
%>

<html>
<head>
<title>管理工具</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="images/global.css"%>
<script language="javascript">
 function checkclick(msg,url){
   if(confirm(msg)){
	  window.location.href=url;
   }else{
	  event.returnValue=false;
   }
 }
 //信息列表
 function loadThreadFollow(codeid){
	var targetImg =eval("document.images.followImg" + codeid);
	var targetDiv =eval("follow" + codeid);
	if (targetImg.nofollow <= 0){return false;}
	if (typeof(targetImg) == "object"){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			targetImg.src="images/cat1.gif";
			if (targetImg.loaded=="no"){
				document.frames["hiddenframe"].location.replace("xkSubCataloglist.jsp?codeid="+codeid);
			}
		}else{
			targetDiv.style.display="none";
			targetImg.src="images/cat.gif";
		}
	}
}
//提交留言
   function tijiao(typeid,keyval){
	  window.location="zczkly.jsp?typeid="+typeid+"&keyval="+keyval;
   }
</script>
</head>

<body background="images/sidebar_back.gif" text="#000000" link="#0000ff"
	vlink="#0000ff" alink="#6699cc"
	onload="parent.frames['header'].location.href='tabs.jsp?tab=<%= sidebar %>';">

<img src="images/blank.gif" width="50" height="5" border="0">
<br>
<IFRAME id=hiddenframe src="xkSubCataloglist.jsp" width=0 height=0><!--文章树--></IFRAME>
<%
if ("notice".equals(sidebar)) {
	
%>
<script type="text/javascript">
	window.open("UserGeneralInfo.jsp","main");
</script>
<table cellpadding="2" cellspacing="1" border="0" width="100%">
	<tr>
		<td rowspan="84" width="1%">&nbsp;</td>
		<td colspan="3"><font size="-1" color="#333333"><b>人员管理</b></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a
			href="UserGeneralInfo.jsp" target="main">用户概览</a></font></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&#149;</td>
		<td><font size="-1"><a href="createShenHeUser.jsp"
			target="main">添加审核人员</a></font></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&#149;</td>
		<td><font size="-1"><a href="createUser.jsp?userType=1"
			target="main">添加采购人员</a></font></td>
	</tr>
</table>

<%

} else if ("system".equals(sidebar)) {
%>
<script type="text/javascript">
	window.open("main.jsp","main");
</script>

<table cellpadding="2" cellspacing="1" border="0" width="100%">
	<tr>
		<td rowspan="99" width="1%">&nbsp;</td>
		<td colspan="3"><font size="-1"><b>用户信息</b></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a href="adminSetting.jsp"
			target="main">修改密码</a></font></td>
	</tr>
</table>
<br>
<table cellpadding="2" cellspacing="1" border="0" width="100%">
	<tr>
		<td rowspan="99" width="1%">&nbsp;</td>
		<td colspan="3"><font size="-1"><b>系统管理</b></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a href="main.jsp"
			target="main">系统版本</a></font></td>
	</tr>
</table>

<%
} else if ("resource".equals(sidebar)) {
%>
<script type="text/javascript">
	window.open("prjView.jsp","main");
</script>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
	<tr>
		<td rowspan="100" width="1%">&nbsp;</td>
		<td colspan="3"><font size="-1"><b>项目管理</b></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a href="prjView.jsp"
			target="main" title="项目概览">项目概览</a></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a href="createPrj.jsp"
			target="main" title="创建新项目">创建新项目</a></font></td>
	</tr>
</table>

<%
} else if ("book".equals(sidebar)) {
%>
<script type="text/javascript">
	window.open("addOthers.jsp?type=2","main");
</script>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
	<tr>
		<td rowspan="100" width="1%">&nbsp;</td>
		<td colspan="3"><font size="-1"><b>相关信息</b></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a
			href="addOthers.jsp?type=0" target="main" title="添加意见">添加常用意见</a></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a
			href="addOthers.jsp?type=1" target="main" title="添加单位">添加常用单位</a></font></td>
	</tr>
	<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a
			href="addOthers.jsp?type=2" target="main" title="添加类别">添加项目类别</a></font></td>
	</tr>
		<tr>
		<td width="8%">&nbsp;</td>
		<td width="11%">&#149;</td>
		<td width="80%"><font size="-1"><a
			href="addOthers.jsp?type=3" target="main" title="添加类别">添加项目事业部</a></font></td>
	</tr>
</table>

<%
}
%>
<br>

</body>
</html>

